package com.esd.device.task;

import com.esd.common.utils.SpringUtils;
import com.esd.device.service.EsdLogDetailService;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

public class EsdLogDetailJob extends QuartzJobBean {

    private final static EsdLogDetailService esdLogDetailService = SpringUtils.getBean(EsdLogDetailService.class) ;

    @Override
    protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
        esdLogDetailService.deleteEsdLogDetail();
    }
}
